<?php
namespace app\admin\validate;
use think\Validate;

class Banner extends Validate
{
    protected $rule = [
        'title'  =>  'require',
        'picture' =>  'require',
    ];

    protected $message = [
        'title.require'  =>  '标题名必须',
        'picture.require' =>  '广告图片必填',
    ];
}